package cn.itcast.beans2;

import java.text.DateFormat;
import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DemoBeans2 {
	
	//属于第三方jar包里面得
	@Autowired
	DateFormat dateFormat;
	
	public void run() {
		
		Date date = new Date();
		
		System.out.println(dateFormat.format(date));
		
	}
	
}
